﻿using System.Collections.Generic;
using System.Linq;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;
    
namespace SinBiota.Model.Entities
{
    [LocalizedName("Specimen", NameResourceType = typeof(Strings))]
    public class Specimen : BaseEntity
    {
        // Related occurrence
        [LocalizedName("Occurrence", NameResourceType = typeof(Strings))]
        public virtual Occurrence Occurrence { get; set; }

        // New Classification:     
        [LocalizedName("TaxonomicClassification", NameResourceType = typeof(Strings))]
        public virtual TaxonomicClassification TaxonomicClassification { get; set; }

        // Count:
        public virtual int? Count { get; set; }

        [LocalizedName("TaxonomicClassification", NameResourceType = typeof(Strings))]
        public virtual IList<DepositaryUnitRecord> DepositaryUnitRecords { get; private set; }

        public Specimen()
        {
            DepositaryUnitRecords = new List<DepositaryUnitRecord>();
            Count = null;
        }
    }

}
